package practise

import (
	"bufio"
	"fmt"
	"os"
)

func Dup()  {
	counts := make(map[string] int)
	input := bufio.NewScanner(os.Stdin)
	for input.Scan() {
		counts[input.Text()] ++
	}

	for line,n := range counts {

		if n > 1{
			fmt.Print("%d\t%s\n",n,line)
		}

	}
}
